import { defHttp } from '/@/utils/http/axios';

enum Api {
  Crud = '/sheet',
  GetByCode = '/sheet/getByCode',
  Operate = '/sheet/operate',
}

export const deletes = (params: number[]) => defHttp.delete({url: Api.Crud, data: params});

export const getByCode = (params:any) => defHttp.get({url: Api.GetByCode, params: params});

export const operate = (params:any) => defHttp.post({url: Api.Operate, data: params});

